package com.mdoffice.utils;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
public class PropertyReader {
public static String getValue(String fileName,String key)
{
try
{
String BUNDLE_NAME=fileName;
ResourceBundle RESOURCE_BUNDLE=ResourceBundle.getBundle(BUNDLE_NAME);
return RESOURCE_BUNDLE.getString(key);
}catch(MissingResourceException mex)
{
return "";
}
catch (Exception e) {
// TODO: handle exception
return "NOT FOUND";
}
}
}